package ThreadDemo1;

public class test5 {
    public static void main(String[] args) throws InterruptedException {
        Thread thread = new Thread(){
            @Override
            public void run() {
                System.out.println("Thread Thread");
            }
        };
        Thread t = new Thread(thread);
        t.start();
        t.join();
        System.out.println("this is main");
    }
}
